$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  padding-top: 7vw;

  .bg_shape {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 50vh;

    img {
      width: 100%;
      object-fit: contain;
    }
  }

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    background: rgba(0, 0, 0, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;

    .content {
      position: relative;

      .s {
        img {
          width: 900/$f+vw;
          object-fit: contain;
        }
      }

      .close {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-100%);
        cursor: pointer;

        img {
          width: 2vw;
          min-width: 20px;
        }
      }

      .mc {
        position: absolute;
        left: 15%;
        top: 12%;
        width: 63%;

        .t {
          color: #FFF;
          font-size: $fontSize_48;
          font-style: italic;
          text-align: center;
        }

        .des {
          margin: 1vw 0;
          line-height: 1.5;

          p {
            color: #FFF;
            font-size: $fontSize_24;
            font-style: italic;
            text-indent: $fontSize_24;
          }
        }

        .icons {
          display: flex;

          a {
            margin-right: 10px;

            svg {
              width: 24/$f+vw;
              min-width: 16px;
            }
          }
        }
      }
    }
  }

  .section1 {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .title {
      position: relative;
      display: inline-block;

      img {
        width: 540/$f+vw;
      }

      p {
        position: absolute;
        color: #FFF;
        font-size: 48/$f+vw;
        font-weight: bold;
        right: 5%;
        top: 25%;
        text-transform: uppercase;
      }
    }

    .rpic {
        position: relative;
  
        .pic1 {
          img {
            width: 310/$f+vw;
          }
        }
  
        .pic2 {
          position: absolute;
          right: 0;
          top: 30%;
  
          img {
            width: 150/$f+vw;
          }
        }
      }
  }


  .section2{
    padding: 30/$f+vw 8vw 120/$f+vw 8vw;
    position: relative;
    .sbg{
        position: absolute;
        left: 0;
        top:980/$f+vw;
        img{
          width: 152/$f+vw;
        }
      }
    .sbg2{
        position: absolute;
        right:0;
        bottom: 484/$f+vw;
        img{
          width: 160/$f+vw;
        }
      }

    .wrap{
        .item{
            display: flex;
            align-items: center;
            justify-content: space-between;
            &:not(:last-child) {
                margin: 0 0 124/$f+vw;
            }
            &:nth-child(2n) {
                flex-direction: row-reverse;
            }
            .img{
                width: 710/$f+vw;
                height: 437/$f+vw;
                overflow: hidden;
                img{
                    width: 100%;
                    height: 100%;
                    transition: all .6s;
                    &:hover{
                        transform: scale(1.05);
                    }
                }
              .swiper-pagination{
                bottom: 20px;
                span{
                  background: #fff;
                  opacity: .5!important;
                  &.swiper-pagination-bullet-active{
                    opacity: 1!important;
                  }
                }
              }
            }
            .text{
                width: 680/$f+vw;
                h1{
                    font-size: 24/$f+vw;
                    color: #000;
                }
                h5{
                    width: 96%;
                    margin: 18/$f+vw 0;
                    font-size: 16/$f+vw;
                    font-weight: 700;
                    line-height: 30/$f+vw;
                }
                .pick{
                    font-size: 14/$f+vw;
                    color: #333;
                    line-height: 28/$f+vw;
                    font-weight: 500;
                }
            }
        }
    }

    .pager {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 80/$f+vw 0 0 0 ;
        a {
          svg {
            display: block;
          }
        }
    
        .nums {
          display: flex;
          align-items: center;
          margin: 0 1vw;
    
          a {
            padding: 0 5px;
            color: rgba(139, 139, 139, 1);
            font-size: $fontSize_22;
            margin: 0 8px;
    
            &:hover {
              border-bottom: 2px solid rgba(224, 28, 28, 1);
              color: rgba(224, 28, 28, 1);
              font-weight: bold;
            }
          }
    
          .active {
            border-bottom: 2px solid rgba(224, 28, 28, 1);
            color: rgba(224, 28, 28, 1);
            font-weight: bold;
          }
        }
      }
  }



  @media screen and (max-width: 1024px) {
    padding-top: 80px;
    .section1{
      .title{
        img{
          width: 160px;
        }
        p{
          font-size: 12px;
        }
      }
    }
    .section2{
      padding: 20px 5% 50px 5%;
      .wrap{
        .item{
            flex-direction: column !important;
            &:not(:last-child) {
                margin: 0 0 40px;
            }
            .img{
                width: 100%;
                height: auto;
                margin: 0 0 10px;
            }
            .text{
                width: 100%;
                h1{
                    font-size: 24px;
                }
                h5{
                    font-size: 18px;
                    margin: 15px 0;
                    line-height: 1.5;
                }
                .pick{
                    font-size: 14px;
                    line-height: 2;
                }
            }
            
        }
      }
      
    .pager{
       margin: 30px 0 0 0;
        .nums{
          margin: 0 10px;
          a{
            font-size: 16px;
          }
        }
      }
    }

  } 
}